<template>
  <div>
    <div>
      主菜单的layout设计：
      <router-link to="/main">to main layout</router-link>
    </div>
  </div>
</template>

<script>
export default {
  async mounted() {
    setInterval(async () => {
      const data = await this.$get('/do?c=1', {
        params: {a: 123}
      })
      console.log(data)
    }, 5000)
  }
}
</script>

<style scoped>
div {
  height: 200px;
  background: lightpink;
}
</style>